package com.xm.xmapp.response.bean;

import java.io.Serializable;

import android.graphics.Bitmap;

import com.alibaba.fastjson.JSONObject;
import com.amap.api.maps.model.LatLng;
import com.xm.xmapp.map.ClusterItem;

public class ResponseSearchHistory implements ClusterItem, Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -5082315394858913733L;
	public String adName, cityName, provinceName, title;
	public JSONObject latLonPoint;

	@Override
	public LatLng getLatLng() {
		LatLng latlng = null;
		double lat = (latLonPoint != null ? latLonPoint.getDoubleValue("latitude") : 0);
		double lng = (latLonPoint != null ? latLonPoint.getDoubleValue("longitude") : 0);
		latlng = new LatLng(lat, lng);	
		return latlng;
	}
	@Override
	public String getName() {
		return title;
	}
	@Override
	public int getNetworkId() {
		return 0;
	}
	@Override
	public int getCars(int flag) {
		return 0;
	}
	@Override
	public int getCar_total() {
		return 0;
	}
	@Override
	public int getIs_send_car_service() {
		return 0;
	}
	@Override
	public Bitmap getImageBitmap(int flag) {
		return null;
	}
	@Override
	public int getType() {
		return ClusterItem.TYPE_ORDER;
	}
	@Override
	public boolean hasImgs() {
		return false;
	}
}
